# $Id: PKGBUILD 73837 2012-07-16 05:38:49Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>
# Contributor: Francois Charette <firmicus@gmx.net>

pkgname=perl-class-autouse
pkgver=2.01
pkgrel=1
pkgdesc="Run-time load a class the first time you call a method in it. "
arch=('any')
url="http://search.cpan.org/dist/Class-Autouse"
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/A/AD/ADAMK/Class-Autouse-$pkgver.tar.gz) 
md5sums=('920890629fa60ba1a3a1150ffa2365fe')

build() {
  cd  $srcdir/Class-Autouse-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
  make pure_install doc_install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
